package cn.mymall.vo.product;

import cn.mymall.entity.mall.Product;
import cn.mymall.entity.mall.ShippingTemplate;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class ShippingFeeVo {
    private Integer vendorId;
    private BigDecimal fee;
    //支持总价满多少免费
    private String supportExceedFree;

    public ShippingFeeVo(BigDecimal fee, Product product, ShippingTemplate template){
        this.fee = fee;
        this.vendorId = product.getVendorId();
        this.supportExceedFree = template.getSupportExceedFree();
    }

}
